projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6df0b0
)
pull: Use API to stage files with length
author
Colin Walters
<walters@verbum.org>
Thu, 10 May 2012 14:29:26 +0000
(10:29 -0400)
committer
Colin Walters
<walters@verbum.org>
Thu, 10 May 2012 14:29:26 +0000
(10:29 -0400)
Not doing so at the moment triggers a bug in the staging path, and
it's more efficient anyways.
src/ostree/ostree-pull.c
patch
|
blob
|
history
diff --git
a/src/ostree/ostree-pull.c
b/src/ostree/ostree-pull.c
index 9613828e7c54f063d3c7088c74f6afb4cef9e564..fedb6565412a6b7560a54d7dacb88ff3b19fb3b6 100644
(file)
--- a/
src/ostree/ostree-pull.c
+++ b/
src/ostree/ostree-pull.c
@@
-994,9
+994,9
@@
fetch_content (OtPullData *pull_data,
cancellable, error))
goto out;
- if (!ostree_repo_stage_
object (pull_data->repo, OSTREE_OBJECT_TYPE_FILE
, checksum,
-
file_object_input
,
- cancellable, error))
+ if (!ostree_repo_stage_
file_object (pull_data->repo
, checksum,
+
file_object_input, length
,
+
cancellable, error))
goto out;
}